package news.factory;

import news.service.NewsService;
public class NewsFactory {
	private static NewsFactory instance;
	private NewsService News;
	
	private NewsFactory(){
		News=new NewsService();
	}

	public static synchronized NewsFactory getInstance() {

		if (instance == null) {
			instance = new NewsFactory();
		}
		return instance;
	}

	public NewsService creatNewsService() {
		return News;
	}
}

